package com.ruoyi.project.gxgw_modules.depositOrder.service;

import java.util.List;

import com.ruoyi.project.gxgw_modules.depositOrder.vo.DepositOrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.gxgw_modules.depositOrder.mapper.DepositOrderMapper;
import com.ruoyi.project.gxgw_modules.depositOrder.domain.DepositOrder;
import com.ruoyi.project.gxgw_modules.depositOrder.service.IDepositOrderService;
import com.ruoyi.common.support.Convert;

/**
 * 寄放订单管理 服务层实现
 * 
 * @author ruoyi
 * @date 2019-01-18
 */
@Service
public class DepositOrderServiceImpl implements IDepositOrderService 
{
	@Autowired
	private DepositOrderMapper depositOrderMapper;

	/**
     * 查询寄放订单管理信息
     * 
     * @param depositId 寄放订单管理ID
     * @return 寄放订单管理信息
     */
    @Override
	public DepositOrder selectDepositOrderById(Integer depositId)
	{
	    return depositOrderMapper.selectDepositOrderById(depositId);
	}
	
	/**
     * 查询寄放订单管理列表
     * 
     * @param depositOrder 寄放订单管理信息
     * @return 寄放订单管理集合
     */
	@Override
	public List<DepositOrderVO> selectDepositOrderList(DepositOrder depositOrder)
	{
	    return depositOrderMapper.selectDepositOrderList(depositOrder);
	}
	
    /**
     * 新增寄放订单管理
     * 
     * @param depositOrder 寄放订单管理信息
     * @return 结果
     */
	@Override
	public int insertDepositOrder(DepositOrder depositOrder)
	{
	    return depositOrderMapper.insertDepositOrder(depositOrder);
	}
	
	/**
     * 修改寄放订单管理
     * 
     * @param depositOrder 寄放订单管理信息
     * @return 结果
     */
	@Override
	public int updateDepositOrder(DepositOrder depositOrder)
	{
	    return depositOrderMapper.updateDepositOrder(depositOrder);
	}

	/**
     * 删除寄放订单管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDepositOrderByIds(String ids)
	{
		return depositOrderMapper.deleteDepositOrderByIds(Convert.toStrArray(ids));
	}
	
}
